Dekoratives Banner

Keywords and statement syntax


    Table 5.1 lists and describes all keywords and statements recognized by the After Effects scripting engine.

    Table  1 Keywords and Statement Syntax

    Keyword/Statement

    Description

    break

    Standard JavaScript construct. Exit the currently executing loop.

    continue

    Standard JavaScript construct. Cease execution of the current loop iteration.

    case

    label used in a switch statement

    default

    label used in a switch statement when a case label is not found

    do - while

    Standard JavaScript construct. Similar to the while loop, except loop condition evaluation occurs at the end of the loop.

    false

    Literal representing boolean false.

    for

    Standard JavaScript loop construct.

    for - in

    Standard JavaScript construct. Provides a way to easily loop through the properties of an object.

    function

    Used to define a function.

    if/if - else

    Standard JavaScript conditional constructs.

    new

    Standard JavaScript constructor statement.

    null

    Assigned to a variable, array element, or object property to indicate that it does not contain a legal value.

    return

    Standard JavaScript way of returning a value from a function or exiting a function.

    switch

    Standard JavaScript way of evaluating an expression and attempting to match the expression's value to a case label.

    this

    Standard JavaScript method of indicating the current object.

    true

    Literal representing boolean true.

    undefined

    Indicates that the variable, array element, or object property has not yet been assigned a value.

    var

    Standard JavaScript syntax used to declare a local variable.

    while

    Standard JavaScript construct. Similar to the do - while loop, except loop condition evaluation occurs at the beginning of the loop.

    with

    Standard JavaScript construct used to specify an object to use in ensuing statements.